package manager
{
	import mx.resources.IResourceManager;
	import mx.resources.ResourceManager;
	
	public class PropertiesManager extends ResourceManager
	{
		protected static var instance:PropertiesManager;
		protected static var iresource:IResourceManager;
		
		public static function getInstance():PropertiesManager
		{
			if(instance == null)
			{
				iresource = ResourceManager.getInstance();
				instance = new PropertiesManager();
			}
			return instance;
		}
		
		public function getString(propertiesName:String , key:String):String
		{
			return iresource.getString(propertiesName , key);
		}
		
		public function getNumber(propertiesName:String , key:String):Number
		{
			return iresource.getNumber(propertiesName , key);
		}
		
		public function getInt(propertiesName:String , key:String):int
		{
			return iresource.getInt(propertiesName , key);
		}
		public function getBoolean(propertiesName:String , key:String):Boolean
		{
			return iresource.getBoolean(propertiesName , key);
		}		
	}
}